package com.sxj.springsourcecode.springframework.factory.config;

import com.sxj.springsourcecode.springframework.factory.config.BeanDefinition;

/**
 * @ProjectName: spring-source-code
 * @Package: com.sxj.springsourcecode.springframework.factory.config
 * @ClassName: BeanDefinitionRegistry
 * @Author: sxj
 * @Description:
 * @Date: 2024/2/21 11:38
 * @Version: 1.0.0
 */
public interface BeanDefinitionRegistry {
    /**
     * 获取bean定义
     * @param beanName
     */
    BeanDefinition getBeanDefinition(String beanName);
    /**
     * 注册bean定义
     * @param beanName
     * @param beanDefinition
     */
    void registerBeanDefiniton(String beanName,BeanDefinition beanDefinition);
}
